package com.duguo.dynamicmvc.factory.processor;

import com.duguo.dynamicmvc.factory.processor.controller.ControllerProcessor;
import com.duguo.dynamicmvc.factory.processor.model.ModelProcessor;
import com.duguo.dynamicmvc.factory.processor.register.RegisterProcessor;
import com.duguo.dynamicmvc.factory.processor.view.ViewProcessor;

public class ProcessorHolderImpl implements ProcessorHolder {
	
	private ModelProcessor _modelProcessor;
	private ViewProcessor _viewProcessor;
	private ControllerProcessor _controllerProcessor;
	RegisterProcessor _registerProcessor;

	public ModelProcessor getModelProcessor() {
		return _modelProcessor;
	}

	public void setModelProcessor(ModelProcessor modelProcessor) {
		_modelProcessor = modelProcessor;
	}
	

	public ViewProcessor getViewProcessor() {
		return _viewProcessor;
	}

	public void setViewProcessor(ViewProcessor viewProcessor) {
		_viewProcessor = viewProcessor;
		_viewProcessor.setProcessorHolder(this);
	}

	public ControllerProcessor getControllerProcessor() {
		return _controllerProcessor;
	}

	public void setControllerProcessor(ControllerProcessor controllerProcessor) {
		_controllerProcessor = controllerProcessor;
	}

	public RegisterProcessor getRegisterProcessor() {
		return _registerProcessor;
	}

	public void setRegisterProcessor(RegisterProcessor registerProcessor) {
		_registerProcessor = registerProcessor;
	}
}
